package com.imooc.hystrix.hystrix;

import com.imooc.hystrix.service.MyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Fallback implements MyService {


    public String error(){
        log.info("Fallback:I'm not a black sheep any more");
         return "Fallback:I'm not a black sheep any more";
    }

    @Override
    public String timeOut(Integer time) {
        return "You are late!";
    }


}
